package com.qisu.enums;


/**
 * 桩状态，包括：离线、故障、告警、空闲、充电中、统电完成、已预约、已插枪、签到、交换密钥
 * 
 * @author alsan
 *
 */
public enum PileState implements DescriptiveEnum<String> {
	Disconnected("00", "离线"), 
	Failure("01", "故障"), 
	Warning("02", "告警"), 
	Available("03", "空闲"), 
	Charging("04", "充电中"), 
	ChargeCompleted("05", "统电完成"), 
	Booked("06", "已预约"), 
	Connected("07", "已插枪"), 
	SignIn("08", "签到"), 
	ExchagingKey("09", "交换密钥");

	private String value;
	private String description;

	private PileState(String val, String desc) {
		value = val;
		description = desc;
	}


	@Override
	public String getValue() {
		return value;
	}

	@Override
	public String getDescription() {
		return description;
	}
}
